import re
def yuanyin(pronline,yuan):#元音识别 音标行>音标>音节>音素
    pattern = re.compile(yuan)
    for i in pronline.split("/"):#i->音标
        for j in i.split("."):#j->音节
            index_list = [i.start() for i in re.finditer(yuan, j)]
            print(index_list)
            if len(index_list) > 1:
                return j.strip()
            # match = pattern.findall(j)
            # print(match,set(match))
            # if len(set(match)) >1:
            #     return j.strip()


#yuan = ["a","e","ɛ","i","o","ɔ","u"]#元音音素
yuan = "[aeɛioɔu]"
a = "v i / r a k . k o n . t j a1 . m o / i l / p e r . s o . n a1 d . dʒ o / i n . t e r . p r e . t a1 . t o / d a / a w . r ɔ1 . r a"
for pron in a.split("/"):
    index_list = [i.start() for i in re.finditer('1', pron)]
    for j in index_list:
        print(pron[j],pron[j-1])

print(yuanyin(a,yuan))